package site.liuming.truismcms.web.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import site.liuming.truismcms.web.mapper.LogMapper;
import site.liuming.truismcms.web.pojo.Log;

@Service
public class LogService {

    @Autowired
    private LogMapper logMapper;

    @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
    public void saveLog(Log log) {
        logMapper.saveLog(log);
    }

}
